home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / _TVSEND.ASM next >
Assembly Source File  |  1988-08-13  |  2KB  |  50 lines

  1. ;************************************************
  2. ;*  _TVSEND.ASM                                 *
  3. ;*      (c) Copyright 1988 Ralf Brown           *
  4. ;*      All Rights Reserved                     *
  5. ;*                                              *
  6. ;*  May be freely copied for noncommercial use  *
  7. ;************************************************
  8.  
  9. _TEXT   SEGMENT BYTE PUBLIC 'CODE'
  10.  
  11. PUBLIC _TVSEND0
  12. PUBLIC _TVSEND00
  13. PUBLIC _TVSEND1
  14. PUBLIC _TVSEND10
  15.  
  16. _TVSEND0 PROC    FAR
  17. _TVSEND00:
  18.         POP     CX
  19.         POP     DX    ; Save return address
  20.         POP     BX    ; get message modifier
  21.         POP     AX    ; get message
  22.         MOV     BH,AL
  23.         MOV     AH,12H ; Function call is "SEND MESSAGE"
  24.         INT     15H   ; call TopView/DESQview
  25.         PUSH    DX    ; Restore return address
  26.         PUSH    CX
  27.         RET
  28. _TVSEND0 ENDP
  29.  
  30. _TVSEND1 PROC    FAR
  31. _TVSEND10:
  32.         POP     CX
  33.         POP     DX    ; Save return address
  34.         POP     BX    ; get message modifier
  35.         POP     AX    ; get message
  36.         MOV     BH,AL
  37.         MOV     AH,12H ; Function call is "SEND MESSAGE"
  38.         INT     15H    ; call TopView/DESQview
  39.         MOV     BX,DX  ; need to put return address elsewhere because we need DX
  40.         POP     AX    ; get single return value into the proper registers
  41.         POP     DX    ; for returning a "long" to Turbo C
  42.         PUSH    BX    ; Restore return address
  43.         PUSH    CX
  44.         RET
  45. _TVSEND1 ENDP
  46.  
  47. _TEXT   ENDS
  48.         END
  49.  
  50.